package com.gzhryc.shared_device.bxscn.core.protocol.v1;

import com.gzhryc.shared_device.bxscn.core.BXSCNConstants;
import com.gzhryc.shared_device.iot.core.IOTMessage;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;

public class V1_BXSCN_IOTMessage extends IOTMessage implements Serializable{
	
	private static final long serialVersionUID = 1L;

	public V1_BXSCN_IOTMessage() {super();}
	
	public V1_BXSCN_IOTMessage(String content) {
		super();
		try {
			this.protocolType = BXSCNConstants.ProtocolTypeV1;
			this.bytes = content.getBytes("UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
	}
}
